package com.example.selfcontrol.dto;


import lombok.Data;

import java.util.Date;

@Data
// 用于返回微信端滑动文章的数据
// 头像 | 作者用户名 | 文章brief | 文章id
public class WxArticleInfoDTO {
    private Long articleId ;

    private String ImgURL ;

    private String authorName ;

    private String title ;

    private String ArticleBrief ;

    private Date creatTime ;

    private Long ArticleCategory ;

    private int StarCount ;

    private int LikeCount ;

    private boolean IsLike ;

    private boolean IsStar ;

    public WxArticleInfoDTO(Long articleId, String imgURL, String authorName,String title, String articleBrief, Date creatTime, Long articleCategory, int starCount, int likeCount) {
        this.articleId = articleId;
        this.ImgURL = imgURL;
        this.authorName = authorName;
        this.ArticleBrief = articleBrief;
        this.creatTime = creatTime;
        this.ArticleCategory = articleCategory;
        this.StarCount = starCount;
        this.LikeCount = likeCount;
        this.title = title ;
    }
}
